﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace BudgetMealsModels.Entities
{
    public class Comment
    {
        public int ParentID { get; set; }
        public int CommentID { get; set; }
        [Required]
        [HiddenInput(DisplayValue = false)]
        public String UserCreated { get; set; }
        [Required]
        [HiddenInput(DisplayValue = false)]
        public int UserCreatedID { get; set; }
        [Required]
        public Recipe Recipe { get; set; }
        [Required]
        public int RecipeRating { get; set; }
        [MaxLength(200)]
        public string Review { get; set; }
        public List<Comment> HierarchicalComments { get; set; }
    }
}
